package com.xuwang.mapper;

import com.xuwang.dto.SupervisoryInformationDto;
import com.xuwang.pojo.SupervisoryInformation;
import com.xuwang.vo.SupervisoryInformationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SupervisoryInformationMapper
 * @Description TODO
 * @Author OuJunchen
 * @Date 2021/9/14 上午10:27
 * @Version 1.0
 */
@Mapper
public interface SupervisoryInformationMapper {
    /**
     * delete by primary key
     *
     * @param list primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey (List<String> list);
    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert (SupervisoryInformation record);

    int insertOrUpdate (SupervisoryInformation record);

    int insertOrUpdateSelective (SupervisoryInformation record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective (SupervisoryInformation record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    SupervisoryInformation selectByPrimaryKey (Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective (SupervisoryInformation record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey (SupervisoryInformation record);

    int updateBatch (List<SupervisoryInformation> list);

    int updateBatchSelective (List<SupervisoryInformation> list);

    int batchInsert (@Param("list") List<SupervisoryInformation> list);

    List<SupervisoryInformationDto> selectAll (@Param("page") int page, @Param("limit") int limit, SupervisoryInformationVo supervisoryInformationVo);
}